package com.ccsoft.atools.service;

import com.ccsoft.atools.dao.ProjectsMapper;
import com.ccsoft.atools.model.Projects;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName:ProjectsServiceImpl
 * @Description:TODO
 * @Author:chanchaw
 * @Date:2019/11/12 15:55
 * @Version:1.0
 **/
@Service
public class ProjectsServiceImpl implements ProjectsService {
    @Autowired
    private ProjectsMapper dao;

    @Override
    public int deleteByPrimaryKey(Integer iid) {
        return dao.deleteByPrimaryKey(iid);
    }

    @Override
    public int insert(Projects record) {
        return dao.insert(record);
    }

    @Override
    public Projects selectByPrimaryKey(Integer iid) {
        return dao.selectByPrimaryKey(iid);
    }

    @Override
    public List<Projects> selectAll() {
        return dao.selectAll();
    }

    @Override
    public int updateByPrimaryKey(Projects record) {
        return dao.updateByPrimaryKey(record);
    }
}
